'use strict';
import Vue from 'vue'
import $ from 'jquery'
import Router from 'vue-router'

const API_ROOT = ''
//http://192.168.11.223
  // jsonp
export function jspmethod(path, data) {
    return $.ajax({
      url: API_ROOT + path,
      jsonp: 'callback',
      dataType: 'jsonp',
      data: data
    })
  }

export function getmethod(path,data){
    return $.ajax({
      url: API_ROOT + path,
      type:'get',
      data: data
    })
}

export default({
  emotiondata(){
    return  getmethod('/static/pillar.json')
  }
})